const url = require("url");
let urlAddress = url.resolve("http://www.baidu.com", "/index.html")
console.log(urlAddress);

/**
 * http://www.baidu.com/index.html
 */